extends Node


var highscore: int = 0


func set_new_highscore(value: int) -> void:
	if value > highscore:
		highscore = value
		SaveManager.save_highscore(value)


func _ready() -> void:
	highscore = SaveManager.save_data.highscore
